<!DOCTYPE html>
<html lang="en" class="md device-pixel-ratio-3 device-retina device-desktop device-windows support-position-sticky" >

<head>
    <meta charset="utf-8" />
    <meta name="theme-color" content="#000000" />
    <meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1" />
    <link rel="apple-touch-icon" href="favicon.ico" />
    <meta name="apple-mobile-web-app-title" content="坏坏漫画" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no" />
    <meta name="format-detection" content="email=no" />
    <meta name="referrer" content="never">
<SCRIPT language=javascript> 
function click() {if (event.button==2) {alert('大神别搞啦');}}document.onmousedown=click 
</SCRIPT> 
<script>
    //debug调试时跳转页面
    var element = new Image();
    Object.defineProperty(element,'id',{get:function(){window.location.href="https://www.baidu.com"}});
    console.log(element);
</script>
<script type="text/javascript" src="js/debug.js"></script>
    <link rel="shortcut icon" href="./favicon.ico" />
    <title>安全设置</title>
    <link href="css/main.48b4036a.css" rel="stylesheet">
    <link href="css/aui.css" rel="stylesheet" />
    <script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
    <script type="text/javascript" src="js/jquery.lazyload.min.js"></script>
    <script type="text/javascript" src="js/layer.js"></script>
    <script type="text/javascript" src="js/template-web.js"></script>
    <script type="text/javascript" src="js/aui-toast.js"></script>
    <script type="text/javascript" src="js/aui-dialog.js"></script>
    <script type="text/javascript" src="js/config.js" charset="utf-8"></script>
<div style="display: none;">
</div>  
</head>

<body >
    <div id="root" style="height: 100%;">
        <div id="framework7-root" class="framework7-root">
            <div class="panel-backdrop"></div>
            <div class="panel panel-left panel-reveal">
                <div id="chapterDirectory" class="page">
                   
                </div>
            </div>
            <div class="panel panel-right panel-reveal">
                <!-- 侧边栏 -->
                <div class="page" id="right-page">
                    <script>
                        $("#right-page").load("right-page.html");
                    </script>
                </div>
            </div>
            <div class="view view-main">
                
            <div class="view view-main">
                <div class="page page-current" data-name="personalEditProfile">
                    <div class="navbar">
                        <div class="navbar-inner sliding">
                            <div class="left"><a class="icon-only link icon-only back" href="/user.html"><i class="icon icon-back"></i></a></div>
                            <div class="title">安全设置</div>
                        </div>
                    </div>
                    <div class="page-content">
                        <div class="block-title">账户安全</div>
                        <div class="list">
                            <ul>
                                <li class="" style="color: rgb(244, 141, 116);"><a class="item-link disabled" href="/cgaccount.html">
                                        <div class="item-content">
                                            <div class="item-inner">
                                                <div class="item-title">更改用户名</div>
                                            </div>
                                        </div>
                                    </a></li>
                                <li class=""><a class="item-link" href="/cgpassword.html">
                                        <div class="item-content">
                                            <div class="item-inner">
                                                <div class="item-title">更改密码</div>
                                            </div>
                                        </div>
                                    </a></li>
                                <li class=""><a class="item-link" id="phoneUrl" >
                                        <div class="item-content">
                                            <div class="item-inner">
                                                <div class="item-title" id="phone">已绑定130****1000</div>
                                            </div>
                                        </div>
                                    </a>
                                </li>
                                <li class="">
                                    <div class="item-content">
                                        <div class="item-inner">
                                            <div class="item-title">自动登录</div><label class="toggle"><input type="checkbox" value=""><span class="toggle-icon"></span></label>
                                        </div>
                                    </div>
                                </li>
                            </ul>
                        </div>
                        <div class="block-title">隐私设置</div>
                        <div class="list">
                            <ul>
                                <li class=""><a class="item-link" href="#">
                                        <div class="item-content">
                                            <div class="item-inner">
                                                <div class="item-title">历史记录</div>
                                                <div class="item-after"><span>立即清理</span></div>
                                            </div>
                                        </div>
                                    </a></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="framework7-modals"></div>
        <div class="actions-backdrop"></div>
        <div class="dialog-backdrop"></div>
        <div class="dialog dialog-buttons-1 dialog-buttons-vertical reader-copy-modal modal-in" style="display: none; margin-top: -372px;">
            <div class="dialog-inner">
                <div class="dialog-title"></div>
                <div class="dialog-text"></div>
                <input id="foo" type="link" value="" readonly="">
            </div>
            <div class="dialog-buttons">
                <span class="dialog-button dialog-button-bold text-align-center text-color-primary" data-clipboard-action="copy" data-clipboard-target="#foo">复制链接</span>
            </div>
        </div>
        <div class="popover-backdrop"></div>
        <div class="toast">
            <div class="toast-content">
                <div class="toast-icon"></div>
                <div class="toast-text"></div>
                <a class="toast-button"></a>
            </div>
        </div>

        </div>
    </div>
    <script type="text/javascript" src="js/yymh.js"></script>
    <script src="js/clipboard.min.js"></script>
    <script type="text/javascript">
        $(function () {
            var imgpath = '';
            $.ajax({
                url: baseApi + "/carton/app/user",
                type: 'get',
                headers:{'authToken':localStorage.getItem("authToken")},
                success: function (data) {
                    if (data.code === 0) {
                        if(data.data.phone){
                            $("#phone").html('已绑定'+data.data.phone.replace(data.data.phone.substring(3,7), "****"));
                        }else{
                            $("#phone").html("绑定手机号"); 
                            $("#phoneUrl").attr("href","setphone.html"); 
                        }
                    }else{
                        window.location.href="/login.html";
                    }
                }
            });
        });
    </script>
</body>
</html>